package cn.java59;

import java.util.Scanner;

public class Homework3 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("输入1-100中的一位数：");
		int num = sc.nextInt();
		for (int i = 0; i <= 100; i++) {
			if (num <= 100) {
				if (num % 3 == 0 && num % 5 == 0) {
					System.out.println("FlipFlop");
					break;
				}
				if (num % 3 == 0) {
					System.out.println("Flip");
					break;
				}
				if (num % 5 == 0) {
					System.out.println("Flop");
					break;
				}

			} else {
				System.out.println("输入错误");
				break;
			}

		}
		System.out.println("执行结束");
	}
}